home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 February / Macworld (1999-02).dmg / Games World / Hot Demos! / DroidWorks demo / dwCD.gob / mission_cog_b0_cline_gear.cog < prev    next >
Text File  |  1998-09-17  |  1KB  |  72 lines

  1. # Jedi Knight Cog Script
  2. #
  3. # CC_Mirror.cog
  4. #
  5. # Generic Mirror control Script
  6. #
  7. # 03/17/98 DGS Created
  8. #
  9. #Desc:
  10. # cog designed to keep the doors from being able to be cut.
  11. # (C) 1998 Lucas Learning Limited All Rights Reserved
  12. # ========================================================================================
  13.  
  14. symbols
  15. message            startup
  16. message            entered
  17.  
  18. ## ========================= Things
  19. sector            sector0
  20. sector            sector1
  21. sector            sector2
  22. sector            sector3
  23. sector            sector4
  24. sector            sector5
  25. sector            sector6
  26.  
  27. int                say0=0        local
  28. int                say1=0        local
  29. int                say2=0        local
  30. int                say3=0        local
  31. int                say4=0        local
  32. int                say5=0        local
  33. int                say6=0        local
  34.  
  35. end
  36.  
  37. # ========================================================================================
  38.                     
  39. code
  40. startup:
  41.     sleep(1);
  42.     dwPlayCammySpeech(17300, "T9ca001.wav", 10, 3);
  43.     sleep(5);
  44.     dwsetreftopic("gear.tpc");
  45.     
  46.     return;
  47. entered:
  48.     
  49.     if (getsenderref() == sector0)
  50.         {
  51.         if (say0 == 0)
  52.             {
  53.             say0 = 1;
  54.             dwPlayCammySpeech(17301, "T9ca003.wav", 10, 0);
  55.             print("say0");
  56.             }
  57.         }
  58.     if (getsenderref() == sector1)
  59.         {
  60.         if (say1 == 0)
  61.             {
  62.             say1 = 1;
  63.             dwPlayCammySpeech(17306, "T9ca007.wav", 10, 0);
  64.             print("say1");
  65.             }
  66.         }
  67.     
  68.     return;
  69.     
  70. end
  71.  
  72.